package  com.tongji.housediy.events.commonEvent
{
	import com.tongji.housediy.view.components.AbstractDrawingRoom;
	
	import flash.events.Event;
	import flash.geom.Point;
	
	import mx.controls.Image;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */	
	public class ExchangeDataEvent extends Event
	{
		public static const UPDATE_EXCHANGE_MODEL:String = "updateExchangeModel";
		public static const RESET_BORDER_CHILD:String = "resetBorderChild";
		public static const UPDATE_MAP_GRAPHICS:String = "updateMapGraphics";
		public static const CHANGE_WANDER_VIEW:String = "changeWanderView";
		public static const UPDATE_MAP_POSITION_ROTAION:String = "updateMapPositionRotation";

		public var position:Point;
		public var rotation:Number;
		
		public function ExchangeDataEvent(type:String, position:Point = null, rotation:Number = 0)
		{
			super(type, true);
			this.position = position;
			this.rotation = rotation;
		}
		
		override public function clone():Event
		{
			return new ExchangeDataEvent(type, position, rotation);
		}
	}
}